#ifndef __FILEUPLOAD_H__
#define __FILEUPLOAD_H__

#include "OSSManage.h"
#include <wfrest/HttpServer.h>
#include <workflow/WFFacilities.h>
#include <string>
using std::string;

class FileUpLoad{
    public:
        FileUpLoad(wfrest::HttpServer & server);
        void start();
    private:
        void fileupload_module();
        void fileuploadMysqlCallback(WFMySQLTask * mysqlTask);
        void fileuploadMysqlCallbackUserfile(WFMySQLTask * mysqlTask);
        void fileuploadMysqlCallbackInsert(WFMySQLTask * mysqlTask);
        void fileuploadMysqlCallbackSavefile(WFMySQLTask * mysqlTask);
        void fileuploadModifyTable(SeriesWork * series,const FileIOArgs *);
        void fileuploadMysqlCallbackResult(WFMySQLTask * mysqlTask);
    private:
        wfrest::HttpServer & m_server;
        OSSManage m_ossManage;
};




#endif // __FILELIST_H__

